#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void Ling_Xing(int n, char x) {
    int i, j, k;

    for (i = 1; i <= n; i++) {
        for (j = n - i; j >= 1; j--) {
            printf(" ");
        }

        for (k = 1; k <= 2 * i - 1; k++) {
            printf("%c", x + i - 1);
        }

        printf("\n");
    }

    for (i = n - 1; i >= 1; i--) {
        for (j = n - i; j >= 1; j--) {
            printf(" ");
        }

        for (k = 1; k <= 2 * i - 1; k++) {
            printf("%c", x + i - 1);
        }

        printf("\n");
    }
}

int main() {
    int n = 0;
    char x = 'A';

    scanf("%d", &n);
    Ling_Xing(n, x);

    return 0;
}